/*
 * Created by JFormDesigner on Fri Mar 25 20:51:53 CST 2022
 */

package com.gxu.sjjg;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * @author unknown
 */
public class Analysefuction extends JFrame {
    public Analysefuction() {
        initComponents();
    }

    private void button1(ActionEvent e) {//界面跳转
        new FileCreate();
    }

    private void button2(ActionEvent e) {
        new Coursechoose();
    }
    //界面代码
    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        panel1 = new JPanel();
        button1 = new JButton();
        button2 = new JButton();
        label1 = new JLabel();

        //======== this ========
        setTitle("\u6210\u7ee9\u5206\u6790\u83dc\u5355");
        setVisible(true);
        var contentPane = getContentPane();
        contentPane.setLayout(null);

        //======== panel1 ========
        {
            panel1.setLayout(null);

            //---- button1 ----
            button1.setText("\u751f\u6210\u6587\u4ef6");
            button1.addActionListener(e -> button1(e));
            panel1.add(button1);
            button1.setBounds(new Rectangle(new Point(125, 55), button1.getPreferredSize()));

            //---- button2 ----
            button2.setText("\u5206\u6790\u6210\u7ee9");
            button2.addActionListener(e -> button2(e));
            panel1.add(button2);
            button2.setBounds(new Rectangle(new Point(125, 125), button2.getPreferredSize()));

            //---- label1 ----
            label1.setIcon(new ImageIcon(getClass().getResource("/myimage/loginimg.jpg")));
            panel1.add(label1);
            label1.setBounds(0, 0, 330, 230);
        }
        contentPane.add(panel1);
        panel1.setBounds(0, 0, 330, 230);

        contentPane.setPreferredSize(new Dimension(330, 260));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    private JPanel panel1;
    private JButton button1;
    private JButton button2;
    private JLabel label1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
